#pragma once

#include "ESMTP.h"
#include "Mail.h"

#include <winsock2.h>
#include <ws2tcpip.h>

namespace libdmail
{

	class ESMTPClient
	{
	private:
		
		SOCKET ConnectSocket;

		ESMTP mEsmpt;
	
	public:
		ESMTPClient(void);
	public:
		~ESMTPClient(void);

	private:
		int connectServer(string mailServer, int port=25);

		int disconnectServer();

	public:
		int sendMail(string mailServer, int port=25, Mail *mail=NULL);

	};

}
